/* mixins */
@import "src/mixins.scss";

// @include DEBUG();
@include useFontSmoothingOnMacOS();
/* wrapper 公共背景 */
.wrapper-bg {
  /* ... */
  background-position: 0 1.7rem;
  background-repeat: repeat-y;
  background-size: 100%;
}

.container {
  width: 100%;
  box-sizing: border-box;
  @include flex_dis();
  @include flex(flex-direction, column);
  @include flex(align-items, center);
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0.3rem,
    #131428 0.3rem
  ); /* 避免超出底图背景 */

  .container-wrapper {
    width: 100%;
    box-sizing: border-box;
  }
  /* header */
  .container-header {
    height: 1.7rem;
    background-position: 0 0;
    background-size: 100% auto;
    overflow: hidden;
    padding-top: 0.62rem;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.24rem;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #ffffff;
    line-height: 0.34rem;
  }
  .container-header + div {
    /* 沉底 自适应上移 */
    margin-top: -0.38rem;
  }

  /* main */
  .container-main {
    padding: 0 0.42rem;
    // background-color: #131428;
    /* notice */
    .container-main__notice {
      width: 6.58rem;
      height: 0.54rem;
      background: #2b2d53;
      border-radius: 0.16rem;
      margin: 0 auto;
      text-align: center;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #feeebd;
      @include flex_dis();
      @include flex(justify-content, center);
      @include flex(align-items, center);
      margin-bottom: 0.14rem;
      font-size: 0.24rem;
      img {
        width: 0.32rem;
        height: 0.32rem;
        margin-right: 0.06rem;
      }
      .minutes {
        margin-left: 0.1rem;
        color: #3dfffe;
      }
    }
    /* task list */
    .container-main__list {
      @include flex_dis();
      @include flex(align-items, center);
      @include flex(justify-content, space-around);
      @include flex(flex-wrap, wrap);
      .list-item {
        width: 2.14rem;
        height: 3.12rem;
        background-size: 100% 100%;
        box-sizing: border-box;
        position: relative;
        padding: 0.32rem 0 0.34rem;
        @include flex_dis();
        @include flex(flex-direction, column);
        @include flex(justify-content, flex-end);
        @include flex(align-items, center);
        margin-bottom: 0.1rem;

        /* PIC */
        .list-item__pic {
          width: 1.18rem;
          height: 1.14rem;
          margin-bottom: auto;
          img {
            display: block;
            width: 100%;
            height: 100%;
          }
        }
        /* NAME */
        .list-item__name {
          // font-size: 0.2rem;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #ffffff;
          line-height: 0.28rem;
          white-space: nowrap;
          transform: translateX(-1px);
          @include useFontSizeLT12(0.2);
        }
        /* VALUE */
        .list-item__value {
          @include flex_dis();
          @include flex(justify-content, center);
          margin-top: 0.1rem;
          .value-icon {
            width: 0.34rem;
            height: 0.3rem;
            display: block;
            margin-right: 0.04rem;
          }
          .value-counts {
            font-size: 0.24rem;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #feeebd;
            line-height: 0.34rem;
          }
        }
        /* TAGS 1天/1次 */
        .list-item__tag {
          width: 0.42rem;
          height: 0.34rem;
          position: absolute;
          top: 0.3rem;
          right: 0.28rem;
        }
        /* GOT 已获取标识 */
        .list-item__got {
          width: 0.46rem;
          height: 0.46rem;
          position: absolute;
          top: 1.4rem;
          right: 0;
        }
      }
    }
    .container-main__list > .list-item:not(:last-of-type) {
      margin-bottom: 0.16rem;
    }
    /* 分割线 */
    .container-main__divider {
      width: 6.4rem;
      height: 0.25rem;
      background-size: 100% 100%;
      background-position: center;
      margin: 0.08rem auto 0.12rem;
    }
  }

  /* tips */
  .container-tips {
    .container-tips__text {
      width: 6.54rem;
      font-size: 0.24rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #d0d2f9;
      line-height: 0.34rem;
      margin: 0.34rem auto 0.14rem;
    }
    .container-tips__qr {
      width: 2.72rem;
      height: 2.72rem;
      display: block;
      margin: 0 auto;
    }
  }

  /* footer */
  .container-footer {
    width: 100%;
    height: 1.62rem;
    background-size: 100%;
    background-position: bottom;
    text-align: center;
    font-size: 0.2rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7e7e86;
    line-height: 0.28rem;
    padding-top: 0.22rem;
    box-sizing: border-box;
    margin-top: -1.02rem;
  }
}
